<?php
     header('Access-Control-Allow-Origin:*');
     $filename = './project_list/'.'PRO'.date('Ymd-His').'.txt';
     $file = fopen($filename,'a+');
     if($_POST['data']){
        // print_r ($_POST['data']);
        for($i=0;$i<count($_POST['data']);$i++){
            $row = json_encode($_POST['data'][$i],JSON_UNESCAPED_UNICODE);
            $write = fwrite($file,$row."\r\n");
        }
      
     }
?>
